BigList Constructor (IEnumerable, Int32)

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates a new BigList initialized with a given number of copies of the items from collection, in order.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public BigList(
	IEnumerable<T> collection,
	int copies
)
Visual Basic (Declaration)
Public Sub New ( _
	collection As IEnumerable(Of T), _
	copies As Integer _
)
Visual C++
public:
BigList (
	IEnumerable<T>^ collection, 
	int copies
)

Parameters

collection
IEnumerable<(Of <T>)>
The collection used to initialize the BigList.
copies
Int32
Number of copies of the collection to use.

Remarks

Initializing the tree list with the elements of collection takes time O(N + log K), where N is the number of items in collection, and K is the number of copies.

Exceptions

ExceptionCondition
System..::ArgumentOutOfRangeExceptioncopies is negative.
System..::ArgumentNullExceptioncollection is null.

See Also